<template>
<h2>点击次数: {{count}}, 当前次数为 {{ evenOrOdd }}</h2>
</template>

<script>
export default {
  name: 'CountShow',
  props: {
    count: Number,
  },

  computed: {
    evenOrOdd () {
      return this.count%2===1 ? '奇数' : '偶数'
    }
  }
}
</script>

<style scoped>

</style>
